//
//  copy_initialization.cpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/7.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#include "copy_initialization.hpp"

std::ostream& operator<<(std::ostream& out, const Fraction4 &f1)
{
    out << f1.m_numerator << "/" << f1.m_denominator;
    return out;
}

Fraction4 makeNegative(Fraction4 f)
{
    f.setNumerator(-f.getNumerator());
    return f;
}
